<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>
	<h:panelGrid id="locationInfoOutputPanel" columns="2" rendered="#{locationModel.current != null}">
		<h:outputText value="id" />
		<h:outputText value="#{locationModel.current.id}" />
		<h:outputText value="Name" />
		<h:outputText value="#{locationModel.current.name}" />
		<h:outputText value="Number" />
		<h:outputText value="#{locationModel.current.number}" />
		<h:outputText value="District" />
		<h:outputText value="#{locationModel.current.district}" />
		<h:outputText value="Address" />
		<h:outputText value="#{locationModel.current.address}" />
		<h:outputText value="Post Code" />
		<h:outputText value="#{locationModel.current.postCode}" />
		<h:outputText value="Contact Person" />
		<h:outputText value="#{locationModel.current.contactPerson}" />
		<h:outputText value="Telephone" />
		<h:outputText value="#{locationModel.current.telephone}" />
		<h:outputText value="Mobile phone" />
		<h:outputText value="#{locationModel.current.mobilePhone}" />
		<h:outputText value="eMail" />
		<h:outputText value="#{locationModel.current.email}" />
		<h:outputText value="Type" />
		<p:selectOneMenu value="#{locationModel.current.type}" disabled="true">
			<f:selectItems value="#{locationModel.availableTypes}" var="type"
					itemLabel="#{type.label}" itemValue="#{type}"></f:selectItems>
		</p:selectOneMenu>
		<h:outputText value="Description" />
		<p:inputTextarea value="#{locationModel.current.description}" disabled="true"/>
	</h:panelGrid>
</ui:composition>

</html>